﻿using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace Traceability.App.Intrastructure.Migrations
{
    public partial class m : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.RenameColumn(
                name: "Batch",
                table: "supplierProfileModels",
                newName: "ProduceBatch");

            migrationBuilder.RenameColumn(
                name: "Batch",
                table: "processingModels",
                newName: "ProduceBatch");

            migrationBuilder.RenameColumn(
                name: "Batch",
                table: "processingCompanyModels",
                newName: "ProduceBatch");

            migrationBuilder.RenameColumn(
                name: "Batch",
                table: "killInformationModels",
                newName: "ProduceBatch");

            migrationBuilder.RenameColumn(
                name: "Batch",
                table: "killCompanyModels",
                newName: "ProduceBatch");

            migrationBuilder.RenameColumn(
                name: "Batch",
                table: "imgModels",
                newName: "ProduceBatch");

            migrationBuilder.RenameColumn(
                name: "Batch",
                table: "healthModels",
                newName: "ProduceBatch");

            migrationBuilder.RenameColumn(
                name: "Batch",
                table: "farmCompanyModels",
                newName: "ProduceBatch");

            migrationBuilder.AlterColumn<string>(
                name: "ProduceBatch",
                table: "farmModels",
                type: "nvarchar(max)",
                nullable: true,
                oldClrType: typeof(string),
                oldType: "nvarchar(max)");
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.RenameColumn(
                name: "ProduceBatch",
                table: "supplierProfileModels",
                newName: "Batch");

            migrationBuilder.RenameColumn(
                name: "ProduceBatch",
                table: "processingModels",
                newName: "Batch");

            migrationBuilder.RenameColumn(
                name: "ProduceBatch",
                table: "processingCompanyModels",
                newName: "Batch");

            migrationBuilder.RenameColumn(
                name: "ProduceBatch",
                table: "killInformationModels",
                newName: "Batch");

            migrationBuilder.RenameColumn(
                name: "ProduceBatch",
                table: "killCompanyModels",
                newName: "Batch");

            migrationBuilder.RenameColumn(
                name: "ProduceBatch",
                table: "imgModels",
                newName: "Batch");

            migrationBuilder.RenameColumn(
                name: "ProduceBatch",
                table: "healthModels",
                newName: "Batch");

            migrationBuilder.RenameColumn(
                name: "ProduceBatch",
                table: "farmCompanyModels",
                newName: "Batch");

            migrationBuilder.AlterColumn<string>(
                name: "ProduceBatch",
                table: "farmModels",
                type: "nvarchar(max)",
                nullable: false,
                defaultValue: "",
                oldClrType: typeof(string),
                oldType: "nvarchar(max)",
                oldNullable: true);
        }
    }
}
